package com.jl.jlapp.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jl.jlapp.R;
import com.jl.jlapp.eneity.ShipAddressModel;
import com.jl.jlapp.eneity.ShipAddressModel.ResultDataBean;
import java.util.List;

public class AddressListAdapter
  extends BaseQuickAdapter<ResultDataBean, BaseViewHolder>
{
  public AddressListAdapter(@LayoutRes int paramInt, @Nullable List<ResultDataBean> paramList)
  {
    super(paramInt, paramList);
  }
  
  protected void convert(BaseViewHolder paramBaseViewHolder, ResultDataBean paramResultDataBean)
  {
    TextView localTextView = (TextView)paramBaseViewHolder.getView(R.id.tv_default);
    localTextView.setVisibility(View.GONE);
    paramBaseViewHolder.setText(R.id.tv_person_name, paramResultDataBean.getConsigneeName());
    paramBaseViewHolder.setText(R.id.tv_person_phone, paramResultDataBean.getConsigneeTel());
    paramBaseViewHolder.setText(R.id.tv_address_details, paramResultDataBean.getRegion() + paramResultDataBean.getDetailedAddress());
    if (paramResultDataBean.getIsCommonlyUsed() == 1) {
      localTextView.setVisibility(View.VISIBLE);
    }
  }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/adapter/AddressListAdapter.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */